package xxxx.entities.db;


/**
 * Created by liwei.b on 2016/12/6.
 */
public class DaoResult<T> {
    public DaoResult() {
    }

    public DaoResult(int code, T data) {
        this.data = data;
    }

    private int errorCode;
    private String errorMessage;
    private T data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
